# Copyright (c) 2017 by Michael Zahniser
#
# Endless Sky is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later version.
#
# Endless Sky is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with
# this program. If not, see <https://www.gnu.org/licenses/>.

mission "Southbound Shipment [0]"
	name "積み荷を<planet>へ"
	job
	repeat
	description "<cargo>を、リム最大の造船所サウスバウンド・シップヤードの本拠地<destination>へ届けてください。報酬は<payment>です。"
	cargo "武器" 5 2 .1
	to offer
		random < 10
		has "landing access: Zug"
	source
		not government "Pirate"
		near "Zubeneschamali" 2 10
		attributes "rim" "south"
	destination "Zug"
	npc
		government "Pirate"
		personality heroic harvests plunders
		fleet "Small Southern Pirates"
	on visit
		dialog phrase "generic cargo on visit"
	on complete
		payment 0 160
		dialog phrase "generic cargo delivery payment"

mission "Southbound Shipment [1]"
	name "積み荷を<planet>へ"
	job
	repeat
	description "<cargo>を、リム最大の造船所サウスバウンド・シップヤードの本拠地<destination>へ届けてください。報酬は<payment>です。"
	cargo "船体合金" 5 2 .1
	to offer
		random < 10
		has "landing access: Zug"
	source
		not government "Pirate"
		near "Zubeneschamali" 2 10
		attributes "rim" "south"
	destination "Zug"
	npc
		government "Pirate"
		personality heroic harvests plunders
		fleet "Small Southern Pirates"
	on visit
		dialog phrase "generic cargo on visit"
	on complete
		payment 0 160
		dialog phrase "generic cargo delivery payment"


mission "Kraz Shipment [0]"
	name "積み荷を<planet>へ"
	job
	repeat
	description "<cargo>を、リム有数の兵器・システムメーカーであるクラズ・サイバネティクスの本拠地<destination>へ届けてください。報酬は<payment>です。"
	cargo "武器の部品" 5 2 .1
	to offer
		random < 10
		has "landing access: Rust"
	source
		not government "Pirate"
		near "Kraz" 2 10
		attributes "rim" "south"
	destination "Rust"
	npc
		government "Pirate"
		personality heroic harvests plunders
		fleet "Small Southern Pirates"
	on visit
		dialog phrase "generic cargo on visit"
	on complete
		payment 0 160
		dialog phrase "generic cargo delivery payment"

mission "Kraz Shipment [1]"
	name "積み荷を<planet>へ"
	job
	repeat
	description "<cargo>を、リム有数の兵器・システムメーカーであるクラズ・サイバネティクスの本拠地<destination>へ届けてください。報酬は<payment>です。"
	cargo Electronics 5 2 .1
	to offer
		random < 10
		has "landing access: Rust"
	source
		not government "Pirate"
		near "Kraz" 2 10
		attributes "rim" "south"
	destination "Rust"
	npc
		government "Pirate"
		personality heroic harvests plunders
		fleet "Small Southern Pirates"
	on visit
		dialog phrase "generic cargo on visit"
	on complete
		payment 0 160
		dialog phrase "generic cargo delivery payment"


mission "Han Sizer Month [0]"
	name "ハン・サイザーの祝典"
	job
	repeat
	description "ハン・サイザー月間の祝典中に、<fare>をしるしのついたすべての星系に連れていけ。<destination>に帰ると <payment>になる。"
	passengers 2 10 .9
	substitutions
		"<on Longjump>" "この近くで"
			has "flagship planet: Longjump"
		"<on Longjump>" "ロングジャンプで"
			not "flagship planet: Longjump"
	to offer
		random < 30
		month == 8
	source
		attributes "rim"
	stopover
		distance 2 4
		attributes "rim"
		not attributes "station"
	stopover
		distance 5 10
		attributes "rim"
		not attributes "station"
	on complete
		payment 10000 170
		dialog "乗客たちはリムを巡る旅に連れて行ってくれたことに感謝し、あなたは報酬<payment>を受け取ります。去り際、旅の締めくくりに<on Longjump>パーティーを開こうと話しているのが聞こえました。"


mission "Han Sizer Month [1]"
	name "ハン・サイザーの祝典"
	job
	repeat
	description "ハン・サイザー月間の祝典中に、<fare>をしるしのついたすべての星系に連れていけ。<destination>に帰ると <payment>になる。"
	passengers 2 10 .8
	substitutions
		"<on Longjump>" "この近くで"
			has "flagship planet: Longjump"
		"<on Longjump>" "ロングジャンプで"
			not "flagship planet: Longjump"
	to offer
		random < 20
		month == 8
	source
		attributes "rim"
	stopover
		distance 2 3
		attributes "rim"
		not attributes "station"
	stopover
		distance 3 4
		attributes "rim"
		not attributes "station"
	stopover
		distance 5 10
		attributes "rim"
		not attributes "station"
	on complete
		payment 15000 170
		dialog "リム一周の旅を終えた乗客たちは大喜びで、約束の料金<payment>を支払います。歩き出しながら、早くも<on Longjump>待つ誰かに旅行記を送り始めている人もいます。"


mission "Han Sizer Month [2]"
	name "ハン・サイザーの祝典"
	job
	repeat
	description "ハン・サイザー月間の祝典中に、<fare>をしるしのついたすべての星系に連れていけ。<destination>に帰ると <payment>になる。"
	passengers 2 10 .7
	to offer
		random < 10
		month == 8
	source
		attributes "rim"
	stopover
		distance 2 3
		attributes "rim"
		not attributes "station"
	stopover
		distance 3 4
		attributes "rim"
		not attributes "station"
	stopover
		distance 4 5
		attributes "rim"
		not attributes "station"
	stopover
		distance 5 10
		attributes "rim"
		not attributes "station"
	on complete
		payment 20000 170
		dialog "お客たちはハン・サイザーの航路をたどる旅に連れて行ってくれたことに感謝し、上機嫌で<payment>を支払います。立ち去る一人が、星図でサビクの項目を開いているのが目に入りました。"


mission "Han Sizer Month [3]"
	name "ハン・サイザーの祝典"
	job
	repeat
	description "ハン・サイザー月間の祝典中に、<fare>をしるしのついたすべての星系に連れていけ。<destination>に帰ると <payment>になる。"
	passengers 25 4 .1
	substitutions
		"<on Longjump>" "この近くで"
			has "flagship planet: Longjump"
		"<on Longjump>" "ロングジャンプで"
			not "flagship planet: Longjump"
	to offer
		random < "passenger space" - 30
		month == 8
	source
		attributes "rim"
	stopover
		distance 2 3
		attributes "rim"
		not attributes "station"
	stopover
		distance 3 4
		attributes "rim"
		not attributes "station"
	stopover
		distance 5 10
		attributes "rim"
		not attributes "station"
	on complete
		payment 150000 110
		dialog "リム一周の旅を終えた乗客たちは大喜びで、約束の料金<payment>を支払います。歩き出しながら、早くも<on Longjump>待つ誰かに旅行記を送り始めている人もいます。"

mission "Delta V Hovercraft Racer Transport"
	name "レーサーを<planet>へ輸送"
	description "パイロットとそのホバークラフトを、<date>までにレースに出場するため<destination>へ届けてください。"
	passengers 1
	cargo "デルタV社ホバークラフト" 1
	job
	repeat
	deadline
	deadline 8
	to offer
		random < 40
		has "landing access: Sunracer"
	source Solace
	destination Sunracer
	on visit
		dialog phrase "generic cargo and passenger on visit"
	on complete
		payment
		payment 11000
		dialog "パイロットとホバークラフトを降ろし、報酬<payment>を受け取ります。"

mission "Delta V Hovercraft Large Racer Transport"
	name "チームを<planet>へ輸送"
	description "この<passengers>名のレーシングチームと<cargo>一式を、<date>までにレースに出場するため<destination>へ届けてください。"
	passengers 50 100 .9
	cargo "デルタV社ホバークラフト" 50
	job
	repeat
	deadline
	deadline 8
	to offer
		random < 7
		has "landing access: Sunracer"
	source Solace
	destination Sunracer
	on visit
		dialog phrase "generic cargo and passenger on visit"
	on complete
		payment
		payment 23000
		dialog "レーシングチームとホバークラフトを降ろし、報酬<payment>を受け取ります。"
